<template>
  <div>
    <div class="base-info">
      <div class="base-info-item">
        <div class="base-info-title">
          <span class="text">基本信息</span>
        </div>
        <div class="base-info-content">
          <div class="content-item"><span>服务主体</span>{{info.servicePrincipal}}</div>
          <div class="content-item"><span>服务分类</span>{{info.serviceCategory}}</div>
          <div class="content-item"><span>适用地域</span>{{info.applicableRegion}}</div>
          <div class="content-item"><span>版本号</span>{{info.version}}</div>
          <div class="content-item"><span>所属站点</span>{{info.site}}</div>
        </div>
      </div>
      <div class="base-info-item">
        <div class="base-info-title">
          <span class="text">服务简介</span>
        </div>
        <div class="introduction">{{info.introduction}}</div>
      </div>
      <div class="base-info-item">
        <div class="base-info-title">
          <span class="text">评论</span>
          <div class="score">综合评分{{info.overallScore}}</div>
          <div class="star">
            <van-rate
              v-model="info.overallScore"
              color="#F2962C"
              void-icon="star-o"
              void-color="#F2962C"
              size="14"
              readonly
            />
          </div>
          <div class="operation">
            <i class="iconfont">&#xe614;</i>
            <i class="iconfont">&#xe68a;</i>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BaseInfo',
  props: {
    info: Object
  },
  data () {
    return {
      
    }
  },
  mounted () {
    
  },
  methods: {
    
  },
}
</script>

<style lang="less" scoped>
  @import '~styles/varibles.less';
  .base-info {
    padding: 0 @pagePadding;
    &-item {
      margin-bottom: 15px;
    }
    &-title {
      position: relative;
      display: flex;
      align-items: center;
      height: 30px;
      font-size: 14px;
      color: #000;
      border-bottom: 1px solid #f3f3f3;
      .text {
        &::before {
          content: '|';
          font-size: 20px;
          font-weight: 600;
          color:#127AED;
          margin-right: 10px;
        }
      }
      .score {
        margin-top: 4px;
        margin-left: 10px;
        margin-right: 7px;
        vertical-align: middle;
        font-size: 12px;
        color:#F2962C;
      }
      .star {
        margin-top: 3px;
      }
      .operation {
        position: absolute;
        right: 0;
        .iconfont {
          font-size: 22px;
          color: #127AED;
          &:nth-child(1) {
            margin-right: 25px;
          }
        }
      }
    }
    &-content {
      display: flex;
      flex-wrap: wrap;
      margin-top: 5px;
      .content-item {
        width: 50%;
        margin-bottom: 10px;
        font-size: 12px;
        color: #8D8D8D;
        &:nth-last-child(1) {
          margin-bottom: 0;
        }
        span {
          display: inline-block;
          min-width: 48px;
          margin-right: 12px;
        }
      }
    }
    .introduction {
      line-height: 2;
      font-size: 12px;
      color: #8D8D8D;
    }
  }
</style>
